<!-- <!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
    <script src="../react.development.js"></script>
    <script src="../react-dom.development.js"></script>
    <title>Document</title>
    <style>
        button{
            width: 80px;
            height: 40px;
            background-color: bisque;
        }
    </style>
</head>

<body>
    <div id="root"></div>
    <script type="text/babel">
        function Form() {

            function handleSubmit(e) {
                e.preventDefault()

            console.log("you clicked submit button!")
            }

            // 这里return 以后不能换行，否则无法渲染，似乎是 babel 解析jsx 的一些问题
            return <form onSubmit={handleSubmit}>
                <button type="submit" className="">Submit</button>
            </form>
        }

        ReactDOM.render(Form(),document.getElementById("root"))
    </script>

</html> -->
